package com.njtoyo.taxi.admin.rest.wrapper.business.area;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;

@EqualsAndHashCode(callSuper = true)
@ApiModel("行政区查询模型")
@Data
public class CantonQueryWrapper extends Page {

    @ApiModelProperty("行政区名称")
    private String name;

    public CantonQueryWrapper(Integer current, Integer size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }
}
